.disk-usage-card {
  padding: 12px;
}

.disk-usage-card .resource-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.disk-usage-card .resource-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.disk-usage-card .usage-value {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
}

.disk-usage-card .disk-details {
  font-size: 12px;
  color: #666;
}

.disk-details-view {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  background: #fff;
}

.disk-overview {
  display: flex;
  gap: 24px;
}

.disk-usage, .disk-io-trend {
  flex: 1;
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  min-height: 140px;
}

.disk-usage .title,
.disk-io-trend .title {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.disk-usage .details {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.disk-health .health-indicators {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disk-health .indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}



/* 分析页面通用样式 */
.space-analysis,
.io-analysis,
.health-check {
  padding: 16px;
  height: 100%;
}

.coming-soon {
  text-align: center;
  padding: 40px;
  color: #666;
}

.coming-soon p {
  font-size: 16px;
  margin-bottom: 16px;
}

.coming-soon ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.coming-soon li {
  margin: 8px 0;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
}

/* 保持原有的分区列表样式 */
.partitions-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
}

.partition-item {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  position: relative;
}

.partition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.partition-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0; /* 允许内容收缩 */
}

.partition-info .mountpoint {
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.partition-info .fstype,
.partition-info .disk-type {
  font-size: 12px;
  color: #999;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0; /* 防止收缩 */
}

.partition-info .disk-type {
  background: #e6f7ff;
  color: #1890ff;
  margin-left: 4px;
}

/* 虚拟分区的特殊样式 */
.partition-item.virtual {
  background: #fafafa;
  opacity: 0.9;
}

.partition-item.virtual .disk-type {
  background: #f6ffed;
  color: #52c41a;
}

.partition-item.virtual .fstype {
  background: #f9f0ff;
  color: #722ed1;
}

.usage-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usage-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.usage-progress {
  width: 100%;
}

.usage-progress .ant-progress {
  margin: 0;
}

/* 进度条信息样式 */
.progress-info {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.progress-info .percent {
  font-weight: 500;
  font-size: 14px;
}

.progress-info .details {
  color: #666;
  font-size: 13px;
}

.io-speed {
  color: #666;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.02);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0; /* 防止收缩 */
}

/* 进度条颜色样式 */
.ant-progress-status-success .ant-progress-bg {
  background-color: #52c41a;
}

.ant-progress-status-warning .ant-progress-bg {
  background-color: #faad14;
}

.ant-progress-status-exception .ant-progress-bg {
  background-color: #ff4d4f;
}
